package city.spring.modules.bed.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 实体类：床位信息
 *
 * @author 侯坤林
 * @date 2020-04-26 12:00:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("bed")
public class BedEntity extends BaseStruct<Void> {

    public static final BedEntity EMPTY = new BedEntity("0", "<未找到>");
    /**
     * 关联老人信息ID
     */
    private String oldmanId;
    /**
     * 关联房间ID
     */
    private String bedRoomId;
    /**
     * 床位朝向
     */
    private String direction;

    public BedEntity(String code, String name) {
        super();
        this.code = code;
        this.name = name;
    }

    @Override
    public String getPid() {
        return bedRoomId;
    }
}